package tu.linjiebiao.node;

public class ArcNode {
    public int adjVex;          //该弧所指向的顶点位置
    public int value;           //边（或弧）的权值 //花费金钱
    public boolean traffic;     //交通工具
    public int time;            //花费时间
    public ArcNode nextArc;     //指向下一条弧

    public ArcNode(){
        this(-1, 0, true, 0, null);
    }

    public ArcNode(int adjVex){
        this(adjVex, 0, true, 0, null);
    }

    public ArcNode(int adjVex, int value, Boolean traffic, int time){
        this(adjVex, value, traffic, time, null);
    } 

    public ArcNode(int adjVex, int value, Boolean traffic, int time, ArcNode nextArc){
        this.adjVex = adjVex;
        this.value = value;
        this.time = time;
        this.traffic = traffic;
        this.nextArc = nextArc;
    }
}
